
<div class="febs-container" id="hazardReport-edit">
    <div class="febs-open-body">
        <form class="layui-form" action="" lay-filter="hazardReport-edit-form">
            <div class="layui-card">
                <blockquote class="layui-elem-quote layui-elem-quote-primary" th:if="${hazardReport} and ${hazardReport.status eq '11'}">隐患信息</blockquote>
                <div class="layui-card-body">
                    <div class="layui-form-item febs-hide">
                        <label class="layui-form-label febs-form-item-require">主键：</label>
                        <div class="layui-input-block">
                            <input type="text" name="reportId" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item febs-hide">
                        <div class="layui-col-md6 ">
                            <label class="layui-form-label febs-form-item-require">所属公司：</label>
                            <div class="layui-input-block">
                                <input type="text" name="tenantId" class="layui-input febs-hide">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md12">
                            <label class="layui-form-label febs-form-item-require">隐患位置：</label>
                            <div class="layui-input-block">
                                <input type="text" name="hazardPlace" class="layui-input"  lay-verify="required" placeholder="请输入隐患位置">
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-col-md12">
                            <label class="layui-form-label febs-form-item-require">隐患图片：</label>
                            <div class="layui-input-block">
                                <div id="fileUpload" style="height: 120px ;width: 100%">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-col-md12">
                            <label class="layui-form-label febs-form-item-require">隐患描述：</label>
                            <div class="layui-input-block">
                        <textarea type="text" name="hazardDescription" autocomplete="off" class="layui-textarea" minlength="2"
                                  maxlength="800" placeholder="请输入隐患描述" lay-verify="required"></textarea>
                            </div>
                        </div>

                    </div>
                </div>
            </div>

            <div th:if="${hazardReport}">
                <div th:if="${hazardReport.status eq '11'}">
                    <div class="layui-card">
                        <blockquote class="layui-elem-quote layui-elem-quote-primary">整改计划</blockquote>
                        <div class="layui-card-body">

                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">退回理由：</label>
                                    <div class="layui-input-block layui-input-block-html"
                                         th:text="${hazardReport.rectificationMeasures}"></div>
                                </div>
                            </div>

                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">退回人：</label>
                                    <div class="layui-input-block layui-input-block-html"
                                         th:text="${hazardReport.planFormulateName}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">退回时间：</label>
                                    <div class="layui-input-block layui-input-block-html"
                                         th:text="${hazardReport.planDate}"></div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>

                <div th:if="${hazardReport.planRecordList} and ${hazardReport.planRecordList.size() > 0}">
                    <div class="layui-card">
                        <blockquote class="layui-elem-quote layui-elem-quote-primary" >制定记录</blockquote>
                        <div class="layui-card-body">
                            <div class="layui-form-item">
                                <table lay-filter="hazardReportPlanRecordTable" id="hazardReportPlanRecordTable" lay-data="{id: 'hazardReportPlanRecordTable'}"></table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-form-item febs-hide">
                <button class="layui-btn" lay-submit="" lay-filter="hazardReport-edit-form-submit" id="submit"></button>
                <button class="layui-btn" lay-submit="" lay-filter="hazardReport-edit-form-save" id="save"></button>
                <button type="reset" class="layui-btn" id="reset"></button>
            </div>
        </form>
    </div>
</div>
<script data-th-inline="javascript">
    var hazardReportData = [[${hazardReport}]];
</script>
<script th:src="@{/febs/js/hazard/hazardReport/hazardReportEdit.js(v=1)}"></script>